//
//  SegmentBar.h
//  YanXiuWang
//
//  Created by 慧趣小歪 on 17/1/12.
//  Copyright © 2017年 小分队. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SegmentBar : UIScrollView

@property (nonatomic, assign) IBInspectable BOOL enabled;
@property (nonatomic, assign) IBInspectable BOOL averageStyle;

@property (nonatomic, assign) IBInspectable NSInteger index;

@property (nonatomic, assign) IBInspectable CGFloat bottomLineHeight;
@property (nonatomic, assign) IBInspectable CGFloat titleOffset;
@property (nonatomic, assign) IBInspectable CGFloat tabInterval;
@property (nonatomic, assign) IBInspectable CGFloat keepWidth;
//@property (nonatomic, assign) IBInspectable CGFloat tabWidth;

@property (nonatomic, strong) IBInspectable UIColor *color;

@property (nonatomic, strong) UIFont *font;

@property (nonatomic, strong) NSArray *titles;


@property (nonatomic, assign) SEL action;
@property (nonatomic, weak) id target;

- (void)from:(NSInteger)startIndex to:(NSInteger)endIndex percent:(CGFloat)ePercent;

@end
